package com.dingqb.mycs.ui.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.dingqb.mycs.R;

public class MainTab3Fragment extends Fragment {

	private LinearLayout ll_1;
	private LinearLayout ll_2;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.fragment_maintab03, container, false);
		initView(view);
		return view;
	}

	private void initView(View view) {
		ll_1 = (LinearLayout) view.findViewById(R.id.ll_1);
		ll_2 = (LinearLayout) view.findViewById(R.id.ll_2);
		for (int i = 0; i < 50; i++) {
			TextView tv = new TextView(getActivity());
			tv.setText("i===" + i);
			ll_1.addView(tv);
		}
		for (int i = 0; i < 50; i++) {
			TextView tv = new TextView(getActivity());
			tv.setText("i===" + i);
			ll_2.addView(tv);
		}

	}

	@Override
	public void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
		System.out.println("MainAddressFragment--onResume");
	}

	@Override
	public void onPause() {
		// TODO Auto-generated method stub
		super.onPause();
		System.out.println("MainAddressFragment--onPause");
	}

}
